<%@page import="cl.utalca.robot.dto.LanguageDTO"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/bootstrap.css" />
<title>Insert title here</title>
</head>
<body>

	<div class="container-fluid">
		
		<ul class="breadcrumb">
			<li><a href="<%=request.getContextPath()%>">Home</a> <span class="divider">/</span></li>
			<li class="active">Prueba del Sistema</li>
		</ul>
		<div class="page-header centered">
			<h1>Prueba del Sistema</h1>			
		</div>

		<form class="form-horizontal" action="RobotController" 
			enctype="multipart/form-data" method="post">

			<div class="control-group">
				<label class="control-label" for="fileInput">Subir Archivo</label>
				<div class="controls">
					<input id="fileInput" type="file"
						title="Seleccionar archivo a subir" name="file" />
				</div>
			</div>

			<div class="control-group">
				<label class="control-label" for="sel-languages">Lenguaje</label>
				<div class="controls">
					<select id="sel-languages" name="languageId">
						<c:forEach items="${languageList}" var="language">
							<option value="${language.id}">${language.languageName}</option>
						</c:forEach>
					</select>					
				</div>
			</div>

			<div class="control-group">
				<div class="controls">
					<button class="btn btn-primary" type="submit">Ejecutar Prueba</button>
				</div>
			</div>
		</form>
	</div>
	
	<script src="http://code.jquery.com/jquery.js"></script>
	<script src="<%=request.getContextPath()%>/js/bootstrap.js"></script>
	<script src="<%=request.getContextPath()%>/js/bootstrap.file-input.js"></script>
</body>
</html>